/*
 * @Author: XingWei 
 * @Date: 2021-07-23 10:40:24 
 * @Last Modified by: XingWei
 * @Last Modified time: 2021-08-20 19:26:44
 * 
 * 间隔
 * 官方做法：https://github.com/flutter/flutter/pull/54394
 */
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class Gaps {
  Gaps._();

  /// 水平间隔
  static Widget hGap1 = SizedBox(width: 1.w);
  static Widget hGap2 = SizedBox(width: 2.w);
  static Widget hGap3 = SizedBox(width: 3.w);
  static Widget hGap4 = SizedBox(width: 4.w);
  static Widget hGap5 = SizedBox(width: 5.w);
  static Widget hGap7 = SizedBox(width: 7.w);
  static Widget hGap8 = SizedBox(width: 8.w);
  static Widget hGap10 = SizedBox(width: 10.w);
  static Widget hGap9 = SizedBox(width: 9.w);
  static Widget hGap12 = SizedBox(width: 12.w);
  static Widget hGap14 = SizedBox(width: 14.w);
  static Widget hGap15 = SizedBox(width: 15.w);
  static Widget hGap16 = SizedBox(width: 16.w);
  static Widget hGap20 = SizedBox(width: 20.w);
  static Widget hGap24 = SizedBox(width: 24.w);
  static Widget hGap28 = SizedBox(width: 28.w);
  static Widget hGap36 = SizedBox(width: 36.w);
  static Widget hGap32 = SizedBox(width: 32.w);

  /// 垂直间隔
  static Widget vGap2 = SizedBox(height: 2.w);
  static Widget vGap3 = SizedBox(height: 3.w);
  static Widget vGap4 = SizedBox(height: 4.w);
  static Widget vGap5 = SizedBox(height: 5.w);
  static Widget vGap6 = SizedBox(height: 6.w);
  static Widget vGap8 = SizedBox(height: 8.w);
  static Widget vGap7 = SizedBox(height: 7.w);
  static Widget vGap10 = SizedBox(height: 10.w);
  static Widget vGap12 = SizedBox(height: 12.w);
  static Widget vGap14 = SizedBox(height: 14.w);
  static Widget vGap15 = SizedBox(height: 15.w);
  static Widget vGap16 = SizedBox(height: 16.w);
  static Widget vGap18 = SizedBox(height: 18.w);
  static Widget vGap24 = SizedBox(height: 24.w);
  static Widget vGap26 = SizedBox(height: 26.w);
  static Widget vGap36 = SizedBox(height: 36.w);
  static Widget vGap40 = SizedBox(height: 40.w);
  static Widget vGap20 = SizedBox(height: 20.w);
  static Widget vGap50 = SizedBox(height: 50.w);
  static Widget vGap80 = SizedBox(height: 80.w);
  static Widget vGap100 = SizedBox(height: 100.w);
  static Widget line = Divider(height: 1.h);
  static Widget line20 = Divider(height: 20.h);
  static Widget line20_3 = Divider(
    thickness: 1.h,
  );

  static Widget lineRigth20 = Divider(height: 1.h, indent: 50.w);

  /// 补充一种空Widget实现 https://github.com/letsar/nil
  /// https://github.com/flutter/flutter/issues/78159
  static const Widget empty = SizedBox.shrink();
}
